//
//  UIViewController+addMotion.m
//  DolphinMusic
//
//  Created by liuhaiyang on 15/4/7.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import "UIViewController+addMotion.h"

@implementation UIViewController (addMotion)


- (void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event
{
    NSLog(@"开始摇动");
}

- (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event
{
    
    NSNotificationCenter *center = [NSNotificationCenter defaultCenter];
    [center postNotificationName:@"viewControllerEmotion" object:nil];
}

- (void)motionCancelled:(UIEventSubtype)motion withEvent:(UIEvent *)event
{
    
}




@end
